package com.leoren.blog.service;

/**
 * @ClassName: RedisService
 * @Author: Leoren
 * @Date: 2023/11/24  14:56
 * @Version: 1.0
 * @Description:
 */

public interface RedisService {

    /***
     * @Author Leoren
     * @Description 点赞
     * @Date 2023/11/24  14:57
     * @Param [userId, contentId]
     * @return void
     *
     */
    void saveLike2Redis(int userId, int contentId);

    /***
     * @Author Leoren
     * @Description 取消点赞
     * @Date 2023/11/24  14:57
     * @Param [userId, contentId]
     * @return void
     *
     */
    void unlikeFromRedis(int userId, int contentId);


    /***
     * @Author Leoren
     * @Description 从redis中删除一条点赞数据
     * @Date 2023/11/24  14:58
     * @Param
     * @return
     *
     */
    void deleteLikedFromRedis(int userId, int contentId);

    /***
     * @Author Leoren
     * @Description 点赞数加1
     * @Date 2023/11/24  14:59
     * @Param [userId, contentId]
     * @return void
     *
     */
    void incrementLikedCount(int userId, int contentId);


    /***
     * @Author Leoren
     * @Description 点赞数减一
     * @Date 2023/11/24  14:59
     * @Param [userId, contentId]
     * @return void
     *
     */
    void decrementLikeCount(int userId, int contentId);


//    List<A>
}
